import {request} from "../utils/index.js";

export function getStudentInfo(name) {
    return request({
        url: `/getStudent?name=${name}`,
        method: "get",
    })
}

export function addStudent(data) {
    return request({
        url: "/addStudent",
        method: "post",
        data
    })
}

export function deleteStudent(data) {
    return request({
        url: "/deleteStudent",
        method: "delete",
        data
    })
}

export function updateStudent(data) {
    return request({
        url: "/updateStudent",
        method: "post",
        data
    })
}

export function batchDeleteStudent(data) {
    return request({
        url: "/batchDeleteStudent",
        method: "delete",
        data
    })
}

export function getSameGradeClass(data) {
    return request({
        url: "/getSameGradeClass",
        method: "post",
        data
    })
}
export function chooseClass(data) {
    return request({
        url: "/chooseClass",
        method: "post",
        data
    })
}
